package main

import (
	"fmt"
	"path"
	"sync"
	"time"
)

func main() {
	var num = 0
	var locker sync.Mutex

	for i := 0; i < 100000; i++ {
		go func(i int) {
			locker.Lock()
			defer locker.Unlock()

			num++
			fmt.Printf("goroutine %d: num = %d\n", i, num)
		}(i)
	}

	time.Sleep(time.Second)

	fmt.Println(path.Join("D:/work/mall/mall/uni-mall/static/", "2022/03/09/", "68dcd9275f90f35657d33ce18d4ad4e3/"))

	//files, err := ioutil.ReadDir(defaultFile + timeDir + "/" + request.Hash + "/")
}
